package com.example.dhk;

import androidx.appcompat.app.AppCompatActivity;
import androidx.appcompat.widget.AppCompatTextView;

import android.app.ProgressDialog;
import android.os.Bundle;
import android.view.View;

import java.security.DigestException;

public class MainActivity<buildTypes> extends AppCompatActivity {

    private AppCompatTextView dhkTextView = null;
    private ProgressDialog dydhk=null;
    private AppCompatTextView dierTextView =null;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);

        dydhk = new ProgressDialog(this);
        dydhk.setProgressStyle(ProgressDialog.STYLE_SPINNER);
        dydhk.setCanceledOnTouchOutside(false);
        dydhk.setTitle("正在加载~");
        dhkTextView = findViewById(R.id.dhkTextView);
        dhkTextView.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                dydhk.show();
            }
        });
        dierTextView = findViewById(R.id.dierTextView);
        dierTextView.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                new dierDialog.Builder(MainActivity.this)
            }
        });
    }


}
